↔{\xleftrightarrow}
\catcode`√=\active
\def√{\sqrt}
PS: i recently posted two questions to this list which i got no
replies to:“simplefonts: math in headers” and“headers:
numberconversion=something or \definestructureconversionset”
do you see them or did they get lost in transmission
and mathematical documents:
\catcode`→=\active
\def→{\xrightarrow}
\catcode`↔=\active
\def↔{\xleftrightarrow}
\catcode`√=\active
\def√{\sqrt}
Sorry for being a noob. I thought for the first three that is somehow
done already. If not, such a mechanism would indeed be useful.
PS: i recently posted
→{\xrightarrow}
\catcode`↔=\active
\def↔{\xleftrightarrow}
\catcode`√=\active
\def√{\sqrt}
Have a look at char-def.lua. All the symbol mappings are defined there.
Please feel free to complete the table (it is a boring and time consuming
process, and I have only managed to cover about half of the table
Hi,
Does ConTeXt have anything equivalent to xleftarrow, xrightarrow of
amsmath. Basically, I need a command that can do
A \xleftarrow[subscript]{superscript} B
should give
superscript
A --- B
subscript
and similar for xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow
for xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow
and xLeftRightarrow.
The closest that I could come to it was (only for superscripts)
\def\xrightarrow#1{\buildrel{#1}\over\longrightarrow}
But this is not extendable.
\xrightarrow{big superscipt}
Any suggestions?
This is how it is defined